package pCloud.server;

import java.sql.Connection;

import pCloud.message.DatabaseReply;
import pCloud.message.DatabaseRequest;

public interface DatabaseHandle {
	public void init(String driver, String id, String username,
			String password) throws Exception;
	
	public void init(Connection connection);
	
	public DatabaseReply evaluateRequest(String keyColumn, DatabaseRequest request) throws Exception;
	
	public Object eavaluateRequest(String query) throws Exception;
	
	public Connection getConnection();
}
